home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 June: Reference Library / Dev.CD Jun 99 RL Disk 1.toast / Technical Documentation / Develop / develop Issue 28 / develop Issue 28 code / MacApp Debugging / TwistDownLists / TDLAboutBox.r < prev    next >
Encoding:
Text File  |  1996-07-15  |  6.7 KB  |  299 lines  |  [TEXT/MPS ]

  1. //----------------------------------------------------------------------------------------
  2. // TDLAboutBox.r
  3. // ETO20 MacApp 3.3.1, MPW 3.4.1
  4. // Copyright ©1996 Conrad Kopala
  5. // Twist Down Lists version 2.0a0 7/15/96
  6. //----------------------------------------------------------------------------------------
  7. #ifndef __TDLABOUTBOX__
  8. #define __TDLABOUTBOX__
  9.  
  10. resource 'STR#' (kAboutBoxWindowID,
  11. #if qNames
  12. "About Box",
  13. #endif
  14. purgeable) {
  15.     {
  16. /* [1] */    "";                            // Window title
  17. /* [2] */        "OK";                        // OK button title
  18. /* [3] */        "^programName - ^verStr"; 
  19. /* [4] */        "Description:";
  20. /* [5] */        TDL_COPYRIGHT;
  21. /* [6] */        "\n";
  22. /* [7] */        WRITTEN_WITH_MACAPP
  23.     }
  24. };
  25.  
  26. resource 'View' (kAboutBoxWindowID,
  27. #if qNames
  28. "About Box",
  29. #endif
  30. purgeable) {
  31.     MAThreeOh,
  32.     {    /* array ViewArray: 7 elements */
  33.         /* [1] */
  34.         ViewSignatureAndClassname {
  35.             'wind',874,"",noID,enabled,noIdle,
  36.             {
  37.                 BehaviorSignatureAndClassname {
  38.                     'dlgb',"TDIALOGBEHAVIOR",DialogBehavior {enabled,noIdle,modal,kDefaultOKItemID,kDefaultOKItemID}
  39.                 }
  40.             },
  41.             MAThreeOh,
  42.             {32,12},{239,438},sizeFixed,sizeFixed,notShown,doesntWantToBeTarget,
  43.             handlesCursor,letsSubViewsHandleCursor,noCursorID,
  44.             handlesHelp,letsSubViewsHandleHelp,noHelpID,1,
  45.             NoDrawingEnvironment {},
  46.             AdornerListSignatureAndClassname {
  47.                 NoIdentifier,AdornerList,AdornerElementSize,AdornerElementSizeShift,
  48.                 DynamicArrayAllocationIncrement,
  49.                 {
  50.                     AdornFirst,AdornerLocalObject {EraseAdorner},
  51.                     DrawView,AdornerLocalObject {DrawAdorner}
  52.                 }
  53.             },
  54.             emptyUserArea,
  55.             Window {
  56.                 dBoxProc,kDefaultOKItemID,noGoAwayBox,notResizable,ignoreFirstClick,
  57.                 freeOnClosing,disposeOnFree,doesntCloseDocument,dontOpenWithDocument,
  58.                 dontAdaptToScreen,dontStagger,forceOnScreen,center,
  59.                 doesntFloat,doesntHideOnSuspend,generateActivates,filler,kAboutBoxWindowID,1
  60.             },
  61.             6
  62.         },
  63.         /* [2] */
  64.         ViewSignatureAndClassname {
  65.             'pict',90,"",noID,notEnabled,noIdle,{},MAThreeOh,
  66.             {0,0},{240,439},sizeFixed,sizeFixed,shown,doesntWantToBeTarget,
  67.             handlesCursor,letsSubViewsHandleCursor,noCursorID,
  68.             handlesHelp,letsSubViewsHandleHelp,noHelpID,1,
  69.             NoDrawingEnvironment {},
  70.             NoAdorners {},
  71.             emptyUserArea,
  72.             Picture {
  73.                 mPictureHit,notHilited,notDimmed,notSizeable,{0,0,0,0},
  74.                 kSystemFontTextStyle,dontPreferOutline,kAboutBoxWindowID
  75.             },
  76.             NoSubviews
  77.         },
  78.         /* [3] */
  79.         ViewSignatureAndClassname {
  80.             'icon',91,"",'ICON',notEnabled,noIdle,{},MAThreeOh,
  81.             {32,32},{32,32},sizeFixed,sizeFixed,shown,doesntWantToBeTarget,
  82.             handlesCursor,letsSubViewsHandleCursor,noCursorID,
  83.             handlesHelp,letsSubViewsHandleHelp,noHelpID,1,
  84.             NoDrawingEnvironment {},
  85.             NoAdorners {},
  86.             emptyUserArea,
  87.             Icon {
  88.                 mIconHit,notHilited,notDimmed,sizeable,{0,0,0,0},
  89.                 kSystemFontTextStyle,dontPreferOutline,preferColor,kAboutBoxIcon
  90.             },
  91.             NoSubviews
  92.         },
  93.         /* [4] */
  94.         ViewSignatureAndClassname {
  95.             'butn',204,"",kDefaultOKItemID,enabled,noIdle,{},MAThreeOh,
  96.             {176,179},{28,80},sizeFixed,sizeFixed,shown,doesntWantToBeTarget,
  97.             handlesCursor,letsSubViewsHandleCursor,noCursorID,
  98.             handlesHelp,letsSubViewsHandleHelp,noHelpID,1,
  99.             DrawingEnvironmentClassIDAndClassname {
  100.                 1,"TDrawingEnvironment",{3, 3},8,
  101.                 $"FFFF FFFF FFFF FFFF",
  102.                 {0,0,0},{65535,65535,65535}
  103.             },
  104.             AdornerListSignatureAndClassname {
  105.                 NoIdentifier,AdornerList,AdornerElementSize,AdornerElementSizeShift,
  106.                 DynamicArrayAllocationIncrement,
  107.                 {
  108.                     DrawView,AdornerLocalObject {DrawAdorner},
  109.                     AdornAfter,AdornerSignatureAndClassname {'comp',"",'comp',freeOnDeletion,$"40"}
  110.                 }
  111.             },
  112.             emptyUserArea,
  113.             Button {
  114.                 mDismiss,notHilited,notDimmed,sizeable,{4,4,4,4},
  115.                 kSystemFontTextStyle,dontPreferOutline,kAboutBoxWindowID,2
  116.             },
  117.             NoSubviews
  118.         },
  119.         /* [5] */
  120.         ViewSignatureAndClassname {
  121.             'stat',6,"",'pNam',notEnabled,noIdle,{},MAThreeOh,
  122.             {32,96},{32,304},sizeFixed,sizeFixed,shown,doesntWantToBeTarget,
  123.             handlesCursor,letsSubViewsHandleCursor,noCursorID,
  124.             handlesHelp,letsSubViewsHandleHelp,noHelpID,1,
  125.             NoDrawingEnvironment {},
  126.             NoAdorners {},
  127.             emptyUserArea,
  128.             StaticText {
  129.                 mStaticTextHit,notHilited,notDimmed,sizeable,{0,0,0,0},
  130.                 kSystemFontTextStyle,preferOutline,autoWrap,dontEraseFirst,justSystem,kAboutBoxWindowID,3
  131.             },
  132.             NoSubviews
  133.         },
  134.         /* [6] */
  135.         ViewSignatureAndClassname {
  136.             'stat',96,"",'cprt',notEnabled,noIdle,{},MAThreeOh,
  137.             {80,96},{50,304},sizeFixed,sizeFixed,shown,doesntWantToBeTarget,
  138.             handlesCursor,letsSubViewsHandleCursor,noCursorID,
  139.             handlesHelp,letsSubViewsHandleHelp,noHelpID,1,
  140.             NoDrawingEnvironment {},
  141.             NoAdorners {},
  142.             emptyUserArea,
  143.             StaticText {
  144.                 mStaticTextHit,notHilited,notDimmed,sizeable,{0,0,0,0},
  145.                 kSystemFontTextStyle,dontPreferOutline,autoWrap,dontEraseFirst,justSystem,kAboutBoxWindowID,5
  146.             },
  147.             NoSubviews
  148.         },
  149.         /* [7] */
  150.         ViewSignatureAndClassname {
  151.             'stat',96,"",noID,notEnabled,noIdle,{},MAThreeOh,
  152.             {138,98},{36,241},sizeFixed,sizeFixed,shown,doesntWantToBeTarget,
  153.             handlesCursor,letsSubViewsHandleCursor,noCursorID,
  154.             handlesHelp,letsSubViewsHandleHelp,noHelpID,1,
  155.             NoDrawingEnvironment {},
  156.             NoAdorners {},
  157.             emptyUserArea,
  158.             StaticText {
  159.                 mStaticTextHit,notHilited,notDimmed,sizeable,{0,0,0,0},
  160.                 kApplFont9TextStyle,dontPreferOutline,autoWrap,dontEraseFirst,justCenter,kAboutBoxWindowID,7
  161.             },
  162.             NoSubviews
  163.         }
  164.     }
  165. };
  166.  
  167. #ifndef __PICT_R__
  168. #include "Pict.r"
  169. #endif
  170.  
  171. resource 'PICT' (kAboutBoxWindowID,
  172. #if qNames
  173. "About Box Pict",
  174. #endif
  175.     purgeable, preload) {
  176.     {-1, -1, 201, 435},
  177.     VersionTwo {
  178.         {    /* array OpCodes: 24 elements */
  179.             /* [1] */
  180.             HeaderOp {
  181.                 Version2,
  182.                 0xFFFF0000,
  183.                 0xFFFF0000,
  184.                 0x1B30000,
  185.                 0xC90000,
  186.                 0
  187.             },
  188.             /* [2] */
  189.             DefHilite {
  190.  
  191.             },
  192.             /* [3] */
  193.             RGBFgCol {
  194.                 65535,
  195.                 65535,
  196.                 65535
  197.             },
  198.             /* [4] */
  199.             Clip {
  200.                 {-1, -1, 201, 435},
  201.                 $""
  202.             },
  203.             /* [5] */
  204.             PnPat {
  205.                 $""
  206.             },
  207.             /* [6] */
  208.             PaintRect {
  209.                 {0, 0, 199, 433}
  210.             },
  211.             /* [7] */
  212.             PnSize {
  213.                 {0, 0}
  214.             },
  215.             /* [8] */
  216.             ShortLine {
  217.                 {36, 48},
  218.                 0,
  219.                 0
  220.             },
  221.             /* [9] */
  222.             LongComment {
  223.                 182,
  224.                 $"0001 0001"
  225.             },
  226.             /* [10] */
  227.             RGBFgCol {
  228.                 0,
  229.                 26214,
  230.                 65535
  231.             },
  232.             /* [11] */
  233.             PnSize {
  234.                 {1, 1}
  235.             },
  236.             /* [12] */
  237.             PnPat {
  238.                 $"FFFF FFFF FFFF FFFF"
  239.             },
  240.             /* [13] */
  241.             FrameSameRect {
  242.  
  243.             },
  244.             /* [14] */
  245.             RGBFgCol {
  246.                 65535,
  247.                 65535,
  248.                 65535
  249.             },
  250.             /* [15] */
  251.             PnPat {
  252.                 $""
  253.             },
  254.             /* [16] */
  255.             PaintRect {
  256.                 {4, 4, 194, 428}
  257.             },
  258.             /* [17] */
  259.             PnSize {
  260.                 {0, 0}
  261.             },
  262.             /* [18] */
  263.             ShortLineFrom {
  264.                 0,
  265.                 0
  266.             },
  267.             /* [19] */
  268.             LongComment {
  269.                 182,
  270.                 $"0001 0001"
  271.             },
  272.             /* [20] */
  273.             RGBFgCol {
  274.                 56797,
  275.                 0,
  276.                 0
  277.             },
  278.             /* [21] */
  279.             PnSize {
  280.                 {1, 1}
  281.             },
  282.             /* [22] */
  283.             PnPat {
  284.                 $"FFFF FFFF FFFF FFFF"
  285.             },
  286.             /* [23] */
  287.             FrameSameRect {
  288.  
  289.             },
  290.             /* [24] */
  291.             OpEndPic {
  292.  
  293.             }
  294.         }
  295.     }
  296. };
  297.  
  298.  
  299. #endif